package com.loyi.cloud.hbsystem.cqi.boot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

import com.loyi.cloud.hbmis.api.IQueryService;
import com.loyi.cloud.hbsystem.cqi.autoconfig.CQIAutoConfiguration;
import com.loyi.cloud.hbsystem.cqi.rest.CQITotalController;
import com.loyi.cloud.hbsystem.cqi.task.CQITotalTask;

@SpringBootApplication
@EnableEurekaClient
@EnableDiscoveryClient
@EnableFeignClients(basePackageClasses = { IQueryService.class })
@EnableScheduling
@ComponentScan(basePackageClasses = { CQIAutoConfiguration.class, CQITotalController.class, CQITotalTask.class })
public class CQIApplication {
	public static void main(String[] args) {
		SpringApplication.run(CQIApplication.class, args);
	}
}
